package org.example.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ducai
 * @since 2024-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("point_info")
public class PointInfo extends Model<PointInfo> {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 是否删除 0-未删除  1-已删除
     */
    @TableField("is_del")
    private Integer isDel;

    /**
     * 删除时间
     */
    @TableField("dele_time")
    private LocalDateTime deleTime;

    /**
     * 暴露id
     */
    @TableField("uuid")
    private String uuid;

    /**
     * 操操作员的uuid
     */
    @TableField("operate_user_uuid")
    private String operateUserUuid;

    /**
     * 被操作用户id
     */
    @TableField("user_uuid")
    private String userUuid;

    /**
     * 积分
     */
    @TableField("point")
    private Integer point;

    /**
     * 积分加减方式  0是减去，1是加积分
     */
    @TableField("point_way")
    private Integer pointWay;

    /**
     * 操作描述
     */
    @TableField("point_information")
    private String pointInformation;

    /**
     * 在哪个房间消费
     */
    @TableField("point_room")
    private String pointRoom;

    /**
     * 礼物的uuid
     */
    @TableField("gift_uuid")
    private String giftUuid;


    public static final String ID = "id";

    public static final String UPDATE_TIME = "update_time";

    public static final String CREATE_TIME = "create_time";

    public static final String IS_DEL = "is_del";

    public static final String DELE_TIME = "dele_time";

    public static final String UUID = "uuid";

    public static final String OPERATE_USER_UUID = "operate_user_uuid";

    public static final String USER_UUID = "user_uuid";

    public static final String POINT = "point";

    public static final String POINT_WAY = "point_way";

    public static final String POINT_INFORMATION = "point_information";

    public static final String POINT_ROOM = "point_room";

    public static final String GIFT_UUID = "gift_uuid";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
